body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}
/* 注册页面专用样式 */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.has-error input {
    border-color: #d32f2f;
}

.btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #3367d6;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
}

.login-link a {
    color: #4285f4;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.alert-error {
    color: #d32f2f;
    background-color: #fde8e8;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.user-info form {
    margin: 0;
}

.user-info button.logout {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.user-info button.logout:hover {
    text-decoration: underline;
}

#file-list-body tr:hover {
    background-color: #f5f5f5;
}

#file-list-body a {
    margin-right: 5px;
}
.container {
    max-width: 1200px;
    margin: 10px auto;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 用户菜单样式 */
.user-menu {
    position: relative;
    display: inline-block;
}
/* 上传进度条样式 */
.progress-container {
    width: 100%;
    height: 20px;
    background-color: #f1f1f1;
    border-radius: 4px;
    margin-bottom: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #555;
}

.upload-status {
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
    color: #2196F3;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: none; /* 默认隐藏，登录后显示 */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #555;
}

.user-avatar:hover {
    background-color: #e0e0e0;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    padding: 10px;
}

.dropdown-content.show {
    display: block;
}


.logout-form {
    margin: 0;
    padding: 8px 12px;
}

.logout-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 5px 0;
    width: 100%;
    text-align: left;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    color: #d32f2f;
}

.logout-btn i {
    width: 20px;
    text-align: center;
}

/* 头部布局调整 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    color: #ff9800;
    gap: 10px;
}

.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

button, .btn {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    opacity: 0.8;
}

.btn.download {
    background-color: #2196F3;
}

.btn.delete {
    background-color: #f44336;
}

.btn.logout {
    background-color: #ff9800;
}

.upload-section {
    margin-bottom: 5px;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 2px;
}

#upload-container {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #0066cc;
}

#progress-container {
    margin-top: 10px;
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 3px;
    overflow: hidden;
}

#progress-bar {
    height: 20px;
    background-color: #4CAF50;
    width: 0%;
    transition: width 0.3s;
}

#progress-text {
    display: block;
    text-align: center;
    margin-top: 5px;
}

.file-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.file-list th, .file-list td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.file-list th {
    background-color: #f2f2f2;
}

.category-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.category-section form {
    display: flex;
    gap: 10px;
}

.category-section input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}